<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Detail: guild_service::detail::service_data_pool&lt; T, Container &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Detail
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>guild_service</b></li><li class="navelem"><b>detail</b></li><li class="navelem"><a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html">service_data_pool</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classguild__service_1_1detail_1_1service__data__pool-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">guild_service::detail::service_data_pool&lt; T, Container &gt; Class Template Reference<span class="mlabels"><span class="mlabel">final</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>服务数据池类  
 <a href="classguild__service_1_1detail_1_1service__data__pool.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="service__data__pool_8hpp_source.html">service_data_pool.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac1d498ff3199e8df31f8b0fbbb9a3402"><td class="memItemLeft" align="right" valign="top"><a id="ac1d498ff3199e8df31f8b0fbbb9a3402"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>service_data_pool</b> (<a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a> <a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html#a725fd9e261c5d4bb77061a93e887452e">size</a>=64)</td></tr>
<tr class="separator:ac1d498ff3199e8df31f8b0fbbb9a3402"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a607e27562155f682a44460ab1dfca668"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html#a607e27562155f682a44460ab1dfca668">push</a> (const T &amp;value)</td></tr>
<tr class="separator:a607e27562155f682a44460ab1dfca668"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9916cee36fca7b6c7fb4bf00eee11f0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html#ac9916cee36fca7b6c7fb4bf00eee11f0">push</a> (T &amp;&amp;value)</td></tr>
<tr class="separator:ac9916cee36fca7b6c7fb4bf00eee11f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91dbbca71425381bc1322d917e78c99a"><td class="memItemLeft" align="right" valign="top">const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html#a91dbbca71425381bc1322d917e78c99a">get</a> (<a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a> index) const</td></tr>
<tr class="separator:a91dbbca71425381bc1322d917e78c99a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a35d7465ec0cede33b3e9a6738869c089"><td class="memItemLeft" align="right" valign="top">T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html#a35d7465ec0cede33b3e9a6738869c089">get</a> (<a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a> index)</td></tr>
<tr class="separator:a35d7465ec0cede33b3e9a6738869c089"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12eb8f251bbc31bc1dcf0410d37feeb5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html#a12eb8f251bbc31bc1dcf0410d37feeb5">is_empty_data</a> (const T &amp;data) const</td></tr>
<tr class="separator:a12eb8f251bbc31bc1dcf0410d37feeb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b9747711ba71ae152e0773a09bd0213"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html#a2b9747711ba71ae152e0773a09bd0213">set</a> (<a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a> index, const T &amp;value)</td></tr>
<tr class="separator:a2b9747711ba71ae152e0773a09bd0213"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a725fd9e261c5d4bb77061a93e887452e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html#a725fd9e261c5d4bb77061a93e887452e">size</a> () const</td></tr>
<tr class="separator:a725fd9e261c5d4bb77061a93e887452e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed6ec69b0a65c1373428544411410014"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html#aed6ec69b0a65c1373428544411410014">resize</a> (<a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a> count)</td></tr>
<tr class="separator:aed6ec69b0a65c1373428544411410014"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;typename T, template&lt; typename Elem, typename Alloc=std::allocator&lt; Elem &gt;&gt; class Container = std::vector&gt;<br />
class guild_service::detail::service_data_pool&lt; T, Container &gt;</h3>

<p>服务数据池类 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a35d7465ec0cede33b3e9a6738869c089"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35d7465ec0cede33b3e9a6738869c089">&#9670;&nbsp;</a></span>get() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , template&lt; typename Elem, typename Alloc=std::allocator&lt; Elem &gt;&gt; class Container = std::vector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T&amp; <a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html">guild_service::detail::service_data_pool</a>&lt; T, Container &gt;::get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a>&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>T&amp; </dd></dl>

</div>
</div>
<a id="a91dbbca71425381bc1322d917e78c99a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91dbbca71425381bc1322d917e78c99a">&#9670;&nbsp;</a></span>get() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , template&lt; typename Elem, typename Alloc=std::allocator&lt; Elem &gt;&gt; class Container = std::vector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const T&amp; <a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html">guild_service::detail::service_data_pool</a>&lt; T, Container &gt;::get </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a>&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>const T&amp; </dd></dl>

</div>
</div>
<a id="a12eb8f251bbc31bc1dcf0410d37feeb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12eb8f251bbc31bc1dcf0410d37feeb5">&#9670;&nbsp;</a></span>is_empty_data()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , template&lt; typename Elem, typename Alloc=std::allocator&lt; Elem &gt;&gt; class Container = std::vector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html">guild_service::detail::service_data_pool</a>&lt; T, Container &gt;::is_empty_data </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>T&amp; </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a607e27562155f682a44460ab1dfca668"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a607e27562155f682a44460ab1dfca668">&#9670;&nbsp;</a></span>push() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , template&lt; typename Elem, typename Alloc=std::allocator&lt; Elem &gt;&gt; class Container = std::vector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html">guild_service::detail::service_data_pool</a>&lt; T, Container &gt;::push </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac9916cee36fca7b6c7fb4bf00eee11f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9916cee36fca7b6c7fb4bf00eee11f0">&#9670;&nbsp;</a></span>push() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , template&lt; typename Elem, typename Alloc=std::allocator&lt; Elem &gt;&gt; class Container = std::vector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html">guild_service::detail::service_data_pool</a>&lt; T, Container &gt;::push </td>
          <td>(</td>
          <td class="paramtype">T &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aed6ec69b0a65c1373428544411410014"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed6ec69b0a65c1373428544411410014">&#9670;&nbsp;</a></span>resize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , template&lt; typename Elem, typename Alloc=std::allocator&lt; Elem &gt;&gt; class Container = std::vector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html">guild_service::detail::service_data_pool</a>&lt; T, Container &gt;::resize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a>&#160;</td>
          <td class="paramname"><em>count</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">num</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a2b9747711ba71ae152e0773a09bd0213"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b9747711ba71ae152e0773a09bd0213">&#9670;&nbsp;</a></span>set()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , template&lt; typename Elem, typename Alloc=std::allocator&lt; Elem &gt;&gt; class Container = std::vector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html">guild_service::detail::service_data_pool</a>&lt; T, Container &gt;::set </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a>&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
    <tr><td class="paramname">value</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a725fd9e261c5d4bb77061a93e887452e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a725fd9e261c5d4bb77061a93e887452e">&#9670;&nbsp;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T , template&lt; typename Elem, typename Alloc=std::allocator&lt; Elem &gt;&gt; class Container = std::vector&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="service__data__pool_8hpp.html#ab6ae0dd98e9dbbc584c17026da045197">pool_index_type</a> <a class="el" href="classguild__service_1_1detail_1_1service__data__pool.html">guild_service::detail::service_data_pool</a>&lt; T, Container &gt;::size </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>pool_index_type </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>pool/<a class="el" href="service__data__pool_8hpp_source.html">service_data_pool.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
